 <%@ page contentType="text/html; charset=gbk" language="java" import="java.sql.*" errorPage="" import="java.io.*"%>
<%@ page import = "com.weibo.dao.connDB" %>

<%
/*page used by click seacrh when having logged in*/
connDB db = new connDB();
db.getConnection();
Integer i=0;
String sn;
%>

<% 
	try
	{
		String sql = "select * from user";
		db.rs= db.executeQuery(sql);

		while(db.rs.next())
		{
			String NickName = db.rs.getString("nickname");
			i++;
			sn = "name";
			sn += i.toString();
			System.out.println(sn);
			%>
		<form method="post" id="loginInfo" action="searchU.jsp">
		<input type="text" name=<%=sn%> id=<%=sn%> value=<%=NickName%>>
		<script language="JavaScript"> 
		document.getElementById("loginInfo").submit();
		</script> 
		</form>
		<%
		//System.out.println(sn+" "+n1+" "+n2+" "+n3+" "+n4);
		}
		i=0;
	}
	catch(Exception e)
	{
		e.printStackTrace();
	}
%>

